import sys

from PyQt5 import QtWidgets

from func.btnFunction import BtnFunction
from func.netFunction import NetFunction
from func.uiFunction import UiFunction
from ui.mainWindow import Ui_MainWindow
from init.initParrten import *


class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow, NetFunction, BtnFunction, UiFunction):
    def __init__(self):
        super(MainWindow, self).__init__()
        self.initNetFunction()
        self.initBtnFunction()
        self.initUiFunction()
        self.setupUi(self)
        self.flashIpMacInfo()
        self.readAccount()
        setBtnConnection(self)





if __name__ == "__main__":
    app = QtWidgets.QApplication(sys.argv)
    Ui = MainWindow()
    Ui.show()
    sys.exit(app.exec_())
